package me.hunche.app.exception;

/**
 * @author Wang, HaiLong. on 2012-10-22 16:42
 *
 */
public class BusinessException extends RuntimeException {
	
	private static final long serialVersionUID = 5749644854808508987L;
	private Integer code;

	public BusinessException(Integer code,String msg) {
		super(msg);
		this.code = code;
	}

	public BusinessException(String msg) {
		super(msg);
	}
	
	public BusinessException(){
	}

	@Override
	public Throwable fillInStackTrace(){
		return null;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
}
